Pair

public interface Pair

A key-value pair that represents a segment of a form data, for example a form field content.

Functions

Link copied to clipboard
public String key()
Returns a string that represents the form content segment key.
Link copied to clipboard
public static FormData.Pair of(String key, String value)
Returns the Pair instance for the given key and value.
Link copied to clipboard
public String value()
Returns a string that represents the form content segment value or an empty string if the key does not correspond to any value.